package com.jason.kotlin.gank.repository

import com.jason.kotlin.gank.api.ApiSource
import com.jason.kotlin.gank.api.ZhiXinService
import com.jason.kotlin.gank.model.ZhiXinApiResponse
import com.jason.kotlin.gank.model.ZhiXinResultsBean

/**
 * @description: ZhiXinApiImpl
 *
 * @author ChenBaoyang
 * @date 4/27/21 11:09
 */
class ZhiXinApiImpl : ZhiXinApi {

    private var service: ZhiXinService = ApiSource.getXinZhiWeatherService(ZhiXinService::class.java)

    override suspend fun getLifeSuggestion(
        location: String?
    ): ZhiXinApiResponse<ZhiXinResultsBean> = service.getLifeSuggestion(ApiSource.XIN_ZHI_APP_SECRET, location)
}